<template>
    <div class="zi">
        <div class="zi_txt">
            <p>
                {{ha}}
                <a href="###" v-for="(value,index) in hb" :key="index" v-show="active === index">
                    {{value}}
                </a>
            </p>
            <div class="mttxt">
                <ul class="mleft">
                    <li class="mh">
                        帮助与下载
                    </li>
                    <li v-on:click="active = index" :class="[{active: active === index}]" v-for="(value,index) in hb" :key="index"><a href="###" v-text="value"></a><img :src="you" class="you"></li>
                </ul>
                <div class="righta" v-show="active === 0">
                    <div v-for="(value,index) in hc" :key="index">
                        <img :src="value">
                        <p>
                            <a href="###">{{hd}}</a>
                            <a href="###" class="zred">{{he}}</a>
                        </p>
                    </div>
                </div>
                <div class="rightb" v-show="active === 1">
                    <h2>{{hf}}</h2>
                    <div class="form">
                        <ul>
                            <li v-for="(item,index) in form" :key="index">
                                <span>
                                    <i>{{item.i}}</i>
                                    {{item.a}}
                                </span>
                                <input type="text" :placeholder="item.b">
                            </li>
                            <li class="area">
                                <span>
                                    <i>*</i>
                                    {{hg}}
                                </span>
                                <div>
                                    <textarea cols="30" rows="15"></textarea>
                                    <p>{{hh}}</p>
                                </div>
                            </li>
                            <a href="###">{{hi}}</a>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
import you from '@/assets/11-27jz5158/you.png';
import zia from '@/assets/11-27jz5158/zia.jpg';
import zib from '@/assets/11-27jz5158/zib.jpg';
export default {
    data(){
        return {
            ha:'关于机知 > ',
            hb:['软件下载','投诉建议'],
            you:you,
            active:0,
            hc:[zia,zib],
            hd:'了解详情',
            he:'非凡下载',
            hf:'投诉建议',
            form:[
                {i:'*',a:'您要反馈的问题：',b:'问题名称'},
                {a:'您的姓名：',b:'您的姓名'},
                {a:'您的联系方式：',b:'电话号码'},
            ],
            hg:'问题详情：',
            hh:'* 建议您填写姓名电话，方便我们售后即时给您联系哦 (＾＿－)。字数不要超过200个字！',
            hi:'提交',
        }
    }
}
</script>
<style lang="scss">
*{margin: 0;padding: 0;}
ul,ol,dl{list-style: none;}
a{text-decoration: none;}
.zi{
    width: 100%;
    height: 827px;
    background: #f2f2f2;
    .zi_txt{
        width: 70%;
        height: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 50px 0 120px;
        p{
            width: 100%;
            height: 30px;
            line-height: 30px;
            margin-bottom: 10px;
            font-size: 16px;
            color: #333333;
            a{
                color: #333333;
            }
        }
        .mttxt{
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: space-between;
            ul.mleft{
                width: 17%;
                height: 165px;
                background: #ffffff;
                float: left;
                margin-top: 10px;
                li{
                    padding: 5px 0 5px 15px;
                    border-bottom: 1px solid #dadade;
                    line-height: 40px;
                    .you{
                        float: right;
                        margin-top: 14px;
                        margin-right: 20%;
                        display: none;
                    }
                    a{
                        font-size: 16px;
                        color: #000000;
                    }
                }
                li.mh{
                    padding: 20px 0 20px 15px;
                    color: #333333;
                    font-size: 20px;
                    font-weight: 600;
                    line-height: 22px;
                }
                li.active{
                    img{
                        display: block;
                    }
                    a{
                        color: #e4393c;
                    }
                }
            }
            .righta{
                width: 78%;
                margin-top: 10px;
                background: #ffffff;
                overflow: hidden;
                height: 497px;
                box-sizing: border-box;
                padding: 40px;
                display: flex;
                justify-content: space-between;
                div{
                    width: 45%;
                    height: 100%;
                    img{
                        display: block;
                        width: 100%;
                        height: 312px;
                        margin-bottom: 35px;
                    }
                    p{
                        width: 100%;
                        height: 50px;
                        display: flex;
                        justify-content: space-between;
                        a{
                            display: block;
                            width: 38%;
                            height: 48px;
                            text-align: center;
                            border: 1px solid #cccccc;
                            line-height: 48px;
                            font-size: 14px;
                            color: #333333;
                        }
                        .zred{
                            background: #ff0000;
                            color: #ffffff;
                        }
                        a:hover{
                            background: #ff0000;
                            color: #ffffff;
                        }
                    }
                }

            }
            .rightb{
                width: 78%;
                //height: 587px;
                margin-top: 10px;
                background: #ffffff;
                overflow: hidden;
                box-sizing: border-box;
                padding: 0 5%;
                h2{
                    width: 100%;
                    height: 50px;
                    line-height: 50px;
                    margin: 20px 0 40px;
                    font-size: 30px;
                    color: #333333;
                    font-weight: 500;
                }
                .form{
                    width: 100%;
                    height: auto;
                    margin-bottom: 40px;
                    ul{
                        width: 80%;
                        height: auto;
                        margin-left: 35px;
                        li{
                            width: 100%;
                            height: 34px;
                            line-height: 34px;
                            margin-bottom: 15px;
                            display: flex;
                            justify-content: center;
                            span{
                                display: block;
                                width: 25%;
                                font-size: 14px;
                                color: #333333;
                                font-weight: bold;
                                margin-right: 3%;
                                text-align: right;
                                i{
                                    font-style: normal;
                                    color: #ff0000;
                                }
                            }
                            input{
                                display: block;
                                width: 58%;
                                height: 32px;
                                line-height: 32px;
                                border: 1px solid #cccccc;
                                border-radius: 5px;
                                margin-left: 3%;
                                text-indent: 15px;
                            }
                        }
                        .area{
                            width: 100%;
                            height: auto;
                            div{
                                display: block;
                                width: 58%;
                                margin-left: 3%;
                                textarea{
                                    display: block;
                                    width: 100%;
                                }
                                p{
                                    width: 100%;
                                    font-size: 14px;
                                    color: #a3a3a3;
                                    line-height: 18px;
                                }
                            }
                        }
                        a{
                            display: block;
                            width: 150px;
                            height: 38px;
                            margin-left: 50%;
                            text-align: center;
                            line-height: 38px;
                            color: #ffffff;
                            background: #ff0000;
                            border: 1px solid #cccccc;
                        }
                    }
                }
            }
        }
    }
}
</style>